package com.gmall.user.feign.impl;

import com.gmall.common.result.Result;
import com.gmall.model.user.UserAddress;
import com.gmall.model.user.UserInfo;
import com.gmall.user.feign.UserApiFeignClient;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserApiFeignClientFallback implements UserApiFeignClient {

    @Override
    public Result<UserInfo> getUserInfoByLoginName(String loginName) {
        System.out.println("进入熔断器 getUserInfoByLoginName");
        return null;
    }

    @Override
    public List<UserAddress>findUserAddressListByUserId(Long userId) {
        System.out.println("进入熔断器 findUserAddressListByUserId");
        return null;
    }

    @Override
    public List<UserAddress> findUserAddressList1(Long userId) {
        System.out.println("进入熔断器 findUserAddressList1");
        return null;
    }

    @Override
    public List<UserAddress> findUserAddressList2() {
        System.out.println("进入熔断器 findUserAddressList2");
        return null;
    }
}
